package com.swift.violent.mainstay.reach;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * The type Swift violent api application.
 *
 * @author xuhaifeng
 */
@SpringBootApplication(scanBasePackages = "com.swift.violent.mainstay", exclude = {DataSourceAutoConfiguration.class})
public class SwiftViolentApiApplication extends SpringBootServletInitializer {

    /**
     * The entry point of application.
     *
     * @param args the input arguments
     */
    public static void main(String[] args) {
        SpringApplication.run(SwiftViolentApiApplication.class, args);
    }

    /**
     * Configure spring application builder.
     *
     * @param application the application
     *
     * @return the spring application builder
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SwiftViolentApiApplication.class);
    }

}
